raar.agent.process.sensor
Class RACameraSensor

java.lang.Object
  extended by raar.agent.process.RAProcess
      extended by raar.agent.process.sensor.RASensor
          extended by raar.agent.process.sensor.RARegionSensor
              extended by raar.agent.process.sensor.RARegionSensor_Pie
                  extended by raar.agent.process.sensor.RACameraSensor
All Implemented Interfaces:
java.io.Serializable, RAAgentDependentProcess

public class RACameraSensor
extends RARegionSensor_Pie

A sensor that models an object recognition device.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.agent.process.sensor.RASensor
agent, output, outputName
 
Fields inherited from class raar.agent.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Fields inherited from interface raar.agent.process.RAAgentDependentProcess
NO_AGENT_DEFINED
 
Constructor Summary
RACameraSensor()
          Default constructor.
RACameraSensor(RAAgent agent)
          Construct a sensor.
 
Method Summary
 java.lang.String explain()
          Give a String that explains what the sensor does.
 RADataType giveSensorInformation(double currentX, double currentY, RAWorldObject[] objectsInRegion)
          Give the sensor reading, given that the sensor's origin is at the coördinate (x,y) and that the objects provided are within the sensor's region.
 java.lang.String toString()
          String representation!
 
Methods inherited from class raar.agent.process.sensor.RARegionSensor_Pie
getDirection, getRadius, getRegion, getSectionWidth, setDirection, setRadius, setSectionWidth
 
Methods inherited from class raar.agent.process.sensor.RARegionSensor
run
 
Methods inherited from class raar.agent.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput
 
Methods inherited from class raar.agent.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RACameraSensor

public RACameraSensor()
Default constructor.


RACameraSensor

public RACameraSensor(RAAgent agent)
Construct a sensor.

Method Detail

giveSensorInformation

public RADataType giveSensorInformation(double currentX,
                                        double currentY,
                                        RAWorldObject[] objectsInRegion)
Give the sensor reading, given that the sensor's origin is at the coördinate (x,y) and that the objects provided are within the sensor's region. Always provide one and the same type of RADataType; do not return null.


toString

public java.lang.String toString()
String representation!

Specified by:
toString in class RASensor

explain

public java.lang.String explain()
Give a String that explains what the sensor does.

Specified by:
explain in class RASensor